<template>
  <div class="nav-bar">
    <div class="left"><slot name="left"></slot></div>
    <div class="center"><slot name="center"></slot></div>
    <div class="right"><slot name="right"></slot></div>
  </div>
</template>

<script>
export default {};
</script>

<style>
.nav-bar {
  display: flex;
  height: 50px;
  line-height: 50px;
  position: fixed;
  text-align: center;
  left: 0;
  right: 0;
  top: 0;
  z-index:10;
  background-color: #26a2ff;
  color: white;
}

.left,
.right {
  width: 50px;
}
.center {
  flex: 1;
}
.left-img img {
  width: 30px;
  height: 30px;
  margin: 10px;
}

.right-img img {
  width: 30px;
  height: 30px;
  margin: 10px;
}
</style>